x86/domain: push per-domain mapping creation down to hvm_domain_initialise
authorWei Liu <wei.liu2@citrix.com>
Mon, 24 Apr 2017 18:00:35 +0000 (19:00 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 7 Jun 2017 11:15:56 +0000 (12:15 +0100)
commit9663602bbac39641714b67261ccdf19c88f9b3b0
treeb8661823ed79c68b4f39e376d6cb73cc3a658134
parentf61c1d1256ed22e7b629ab9b93557df94b6df959
x86/domain: push per-domain mapping creation down to hvm_domain_initialise

We want to have a single entry point to initialise hvm guest.  Push
the per-domain mapping creation down to hvm_domain_initialise.

We can't move setting hap_enabled yet because that field needs to be
set before paging initialisation. Document that.

While at it, supply hvm_domain_initialise with more arguments. Though
they aren't used yet, they might be required in the future.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c
xen/arch/x86/hvm/hvm.c
xen/include/asm-x86/hvm/hvm.h